home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM 1995 Fall / PD-ROM F95.toast / Telecom / Terminal Programs / Terminal 2.0.1 ƒ / Hdrs / Text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-19  |  561 b   |  20 lines  |  [TEXT/ttxt]

  1. /*
  2.     Terminal 2.0
  3.     "Text.h"
  4. */
  5.  
  6. typedef struct {
  7.     Byte    *text;        /* Pointer to text buffer */
  8.     long    size;        /* Size of text buffer */
  9.     long    firstChar;    /* Offset of first character in text */
  10.     long    newChar;    /* Offset of next character location */
  11.     long    length;        /* Length of text */
  12.     long    lines;        /* Number of lines in text */
  13.     long    viewChar;    /* Offset of character corresponding... */
  14.     long    viewLine;    /* ...to this line */
  15. } TextRecord;
  16.  
  17. void AddNewCharacter (TextRecord *, Byte);
  18. Boolean    FindLine (TextRecord *, long, Byte *);
  19. Byte RemoveCharacter (TextRecord *);
  20.